<?php

spl_autoload_register(
    function($class) {
        $x = str_replace('_', DIRECTORY_SEPARATOR, $class);
        $x = THEMELIB . $x . '.php';
        if (is_file($x)) {
            require_once($x);
        }
    }
);

$bootstrap = OOWP_Bootstrap::get_instance( );
$bootstrap->register_child_namespace('Example'); // Change 'Example' to name of namespace
$bootstrap->register_query($wp_query);
$controller = $bootstrap->resolve_controller( );
echo $controller->format( );
